package com.gitee.llj.tools.base;

/**
 * <p></p>
 *
 * @Author llj
 * @Date 2018/3/27
 */
public enum ResultStatus {
    SUCCESS("0", "成功"),
    FAIL("1", "失败"),
    USERNAME_OR_PASSWORD_ERROR("1", "用户名或密码错误"),
    USER_NOT_FOUND("1", "用户不存在"),
    USER_NOT_LOGIN("1", "用户未登录"),
    USER_NOT_PERMISSIONS("401", "没有权限访问此接口"),
    PARAM_MUST_NOTNULL("1", "必填项不能为空"),
    SYSTEM_ERROR("500","系统错误");

    /**
     * 返回码
     */
    private String success;

    /**
     * 返回结果描述
     */
    private String message;


    ResultStatus(String success, String message) {
        this.success = success;
        this.message = message;
    }

    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
